#ifndef _PLUGIN_DVB_FUN_H
#define _PLUGIN_DVB_FUN_H

#ifdef __cplusplus
extern "C"{
#endif

int PluginDvbSetFilter(unsigned int* phFilter, unsigned short u16Pid, unsigned char* pu8Data, unsigned char* pu8Mask, unsigned int u32Depth);

int PluginDvbReleaseFilter(unsigned int hFilter);

int PluginDvbTunerLock(builder_tuner_t* pstFreq);

int PluginDvbWriteNvm(unsigned char* pu8Data, unsigned int u32Len, unsigned int u32Offset);

int PluginDvbReadNvm(unsigned char* pu8Data, unsigned int u32Len, unsigned int u32Offset);

void PluginDvbLogcat(char *ps8Format, ...);

void* PluginDvbMemAlloc(unsigned int pu32Size);

void PluginDvbMemFree(void *pPointer);

void PluginDvbConvertString(unsigned char *pString, unsigned short len, unsigned char *lanCode);

int PluginDvbTableChangleNotify(unsigned char u8TableChangeResult);

int PluginDvbReadMonitorData(builder_monitor_data_t *pstmonitorData);

void PluginDvbSetFun(dvb_funcs_t* pstDvbFuncs);


int PluginCheckTunerInfo(builder_tuner_t* pstFreq);

int PluginCreatSectionNode(builder_section_t** ppSectionNode, unsigned char* pu8Data);

int PluginFreeTable(builder_section_t* pstSection);


#ifdef __cplusplus
}
#endif

#endif //_PLUGIN_DVB_FUN_H
